// Node 测试脚本：测试 require 路径修复
const path = require('path');

try {
  // 计算 auth_middleware.js 的绝对路径
  const authPath = path.resolve(__dirname, '../../my_user/helpers/auth_middleware.js');
  const authMiddleware = require(authPath);
  console.log('[测试通过] 成功 require auth_middleware.js:', authMiddleware);
} catch (err) {
  console.error('[测试失败] require auth_middleware.js 出错:', err);
  process.exit(1);
}

console.log('require 路径测试完成'); 